package cn.kylinos.springportal.access.service;

import cn.kylinos.springportal.access.model.Accesslog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Accesslog service interface
 * @author lichenghong
 */
public interface AccesslogService {
    /**
     * Find all accesslog
     * @return
     */
    List<Accesslog> findAll();

    /**
     * Find all accesslog with pagination
     * @param pageable
     * @return one page of result
     */
    Page<Accesslog> findAll(Pageable pageable);

    /**
     * find accesslog by id
     * @param logId
     * @return
     */
    Accesslog findById(Integer logId);

    /**
     * Create accesslog record
     * @param accesslog
     * @return
     */
    Accesslog create(Accesslog accesslog);
}
